<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>航空客票系统</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <%= stylesheet_link_tag "../javascripts/ext/resources/css/ext-all.css" %>
    <%= stylesheet_link_tag "/stylesheets/blue.css" %>
    <%= stylesheet_link_tag "/stylesheets/images.css" %>
  </head>
  <body onContextmenu="return false">
    <%= javascript_include_tag "/javascripts/ext/adapter/prototype/prototype.js" %>
    <%= javascript_include_tag "/javascripts/ext/adapter/prototype/scriptaculous.js" %>
    <%= javascript_include_tag "/javascripts/ext/adapter/prototype/effects.js" %>
    <%= javascript_include_tag "/javascripts/ext/adapter/prototype/ext-prototype-adapter.js" %>
    <!-- LIBS -->
    <%if session[:explorer_info]=="IE" %>
      <%= javascript_include_tag "/javascripts/ext/adapter/ext/ext-base.js" %>
    <%end %>
    <!-- ENDLIBS -->
    <%= javascript_include_tag "/javascripts/ext/ext-all.js" %>
    <%= javascript_include_tag "/javascripts/ext/examples.js" %>
    <%= javascript_include_tag "/javascripts/ext/build/locale/ext-lang-zh_CN.js" %>
    <%= javascript_include_tag "/javascripts/application.js" %>
    <%= javascript_include_tag "/javascripts/index.js" %>
    <script>
        //聊天窗口
        var chatWin;
        //Javascript 常量
        var PAY_TYPE_XJ = "<%=Constants::PAY_TYPE_XJ%>";
        var PAY_TYPE_SK = "<%=Constants::PAY_TYPE_SK%>";
        var PAY_TYPE_QT = "<%=Constants::PAY_TYPE_QT%>";
        var PAY_TYPE_ZP = "<%=Constants::PAY_TYPE_ZP%>";
        var PAY_TYPE_ZZ = "<%=Constants::PAY_TYPE_ZZ%>";
        var PAY_TYPE_JF = "<%=Constants::PAY_TYPE_JF%>";
            
        var ACTIVITY_TYPE_FHY = "<%=Constants::ACTIVITY_TYPE_FHY%>";
        var ACTIVITY_TYPE_SQTJP = "<%=Constants::ACTIVITY_TYPE_SQTJP%>";
        var ACTIVITY_TYPE_SBX = "<%=Constants::ACTIVITY_TYPE_SBX%>";
        var ACTIVITY_TYPE_SJC = "<%=Constants::ACTIVITY_TYPE_SJC%>";
        var ACTIVITY_TYPE_TJP = "<%=Constants::ACTIVITY_TYPE_TJP%>";
  
        var ORDER_STATUS_YDD = "<%=Constants::ORDER_STATUS_YDD%>";
        var ORDER_STATUS_SQD = "<%=Constants::ORDER_STATUS_SQD%>";
        var ORDER_STATUS_YCP = "<%=Constants::ORDER_STATUS_YCP%>";
        var ORDER_STATUS_YQX = "<%=Constants::ORDER_STATUS_YQX%>";
        var ORDER_STATUS_YFK = "<%=Constants::ORDER_STATUS_YFK%>";
        var ORDER_STATUS_YZF = "<%=Constants::ORDER_STATUS_YZF%>";
        var ORDER_STATUS_GQD = "<%=Constants::ORDER_STATUS_GQD%>";
        var ORDER_STATUS_YTD = "<%=Constants::ORDER_STATUS_YTD%>";
        var ORDER_STATUS_WQR = "<%=Constants::ORDER_STATUS_WQR%>";
            
        var TICKET_STATUS_WQR = "<%=Constants::TICKET_STATUS_WQR%>";
        var TICKET_STATUS_QRCP = "<%=Constants::TICKET_STATUS_QRCP%>";
        var TICKET_STATUS_LJCP = "<%=Constants::TICKET_STATUS_LJCP%>";
        var TICKET_STATUS_YQX = "<%=Constants::TICKET_STATUS_YQX%>";
        var TICKET_STATUS_GQD = "<%=Constants::TICKET_STATUS_GQD%>";
        var TICKET_STATUS_YZF = "<%=Constants::TICKET_STATUS_YZF%>";
        var TICKET_STATUS_YTP = "<%=Constants::TICKET_STATUS_YTP%>";
        var TICKET_STATUS_YCP = "<%=Constants::TICKET_STATUS_YCP%>";

        var SEND_START_TIME = "<%=Constants::SEND_START_TIME%>";
        var SEND_END_TIME = "<%=Constants::SEND_END_TIME%>";
        var JJ_START_TIME = "<%=Constants::JJ_START_TIME%>";
        var JJ_END_TIME = "<%=Constants::JJ_END_TIME%>";

        var DEFAULT_JJ_ADDRESS = "<%=Constants::DEFAULT_JJ_ADDRESS%>";
        var COMPANY_NAME = "<%=Constants::COMPANY_NAME%>";
        var COMPANY_WEBSITE = "<%=Constants::COMPANY_WEBSITE%>";
        
        var today = new Date().format('Y-m-d');
        var latest_chat_id = <%=session[:latest_chat_id]%>;//记录消息最后的ID            
    </script>
    <div id="container">
      <div id="toolbar">
      </div>
      <div id="chat_win">
      </div>
    </div>
    <div class="x-form-item">
      <%= @content_for_layout %>
    </div>
  </body>
</html>
